package com.lfs.market.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lfs.market.model.R;
import com.lfs.market.model.entity.ProductCollect;

import java.util.List;

public interface ProductCollectService extends IService<ProductCollect> {
    /**
     * 取消收藏
     *
     * @param id
     * @return
     */
    R delete(String id);

    /**
     * 收藏商品
     *
     * @param collect
     * @return
     */
    void collectProduct(ProductCollect collect);

    /**
     * 查询收藏列表
     *
     * @return
     */
    List getList();
}
